﻿
using System.Diagnostics;
using System.IO;

namespace server.update_1_0_0
{
    /// <summary>
    /// 服务实现类，用以实现服务契约
    /// </summary>
    public class Service : Contract
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="flowId"></param>
        /// <param name="ids"></param>
        public void update(string flowId, string[] ids)
        {
            const string updateModulePath = "CCU.Update.exe";

            if (File.Exists(updateModulePath))
                Process.Start(updateModulePath, string.Format("{0} {1}", flowId, string.Join(",", ids)));
        }
    }
}
